import request from '@/utils/request'
import url from './url'

export function createScriptApi(data) {
  return request({
    url: url.createScriptUrl,
    method: 'post',
    data
  })
}

export function updateScriptApi(data) {
  return request({
    url: url.updateScriptUrl,
    method: 'post',
    data
  })
}

export function deleteScriptApi(data) {
  return request({
    url: url.deleteScriptUrl,
    method: 'post',
    data
  })
}

export function getScriptListApi(data) {
  return request({
    url: url.getScriptListUrl,
    method: 'get',
    params: data
  })
}

export function getScriptApi(data) {
  return request({
    url: url.getScriptUrl,
    method: 'get',
    params: data
  })
}